-- Dungeon
-- Create by panyl
-- 地牢相关定义

-- 地牢宽高
DUNGEON_WIDTH         =      5   -- 宽5格
DUNGEON_HEIGHT        =      6   -- 高6格

-- 格子总数
GRID_SIZE             = DUNGEON_WIDTH * DUNGEON_HEIGHT

-- 格子元素类型
GRID_TYPE_EMPTY        =      0   -- 空格
GRID_TYPE_DOOR         =      1   -- 门
GRID_TYPE_MONSTER      =      2   -- 怪物
GRID_TYPE_BLOCK        =      3   -- 障碍
GRID_TYPE_ITEM         =      4   -- 物品
GRID_TYPE_ALTAR        =      5   -- 祭坛
GRID_TYPE_SHOP         =      6   -- 商店
GRID_TYPE_BANK         =      7   -- 银行
GRID_TYPE_ARENA        =      8   -- 竞技场
GRID_TYPE_LEGACY       =      9   -- 遗产
GRID_TYPE_HOLE         =      10  -- 怪物洞窟
GRID_TYPE_BOSS         =      11  -- 神秘BOSS
GRID_TYPE_BOX          =      12  -- 宝箱
GRID_TYPE_SLIME        =      13  -- 冈布奥
GRID_TYPE_APPRENTICE   =      14  -- 冈布奥学徒
GRID_TYPE_MAP          =      15  -- 关卡地图
GRID_TYPE_FOUNTAIN     =      16  -- 幸运喷泉
GRID_TYPE_MINE         =      17  -- 矿脉
GRID_TYPE_BLACKSMITH   =      18  -- 工坊
GRID_TYPE_INSTANCE     =      19  -- 地牢副本
GRID_TYPE_CAVE_BOX     =      20  -- 怪物巢穴副本宝箱
GRID_TYPE_BOSS_BOX     =      21  -- BOSS宝箱
GRID_TYPE_BEEHIVE      =      22  -- 蜂巢
GRID_TYPE_TRAP         =      23  -- 陷阱
GRID_TYPE_FRUIT        =      24  -- 果树
GRID_TYPE_WRECKAGE     =      25  -- 残骸
GRID_TYPE_MARMITE      =      26  -- 砂锅
GRID_TYPE_STORAGE_BOX  =      27  -- 储物箱
GRID_TYPE_RUBBISH      =      28  -- 垃圾堆
GRID_TYPE_STATUE       =      29  -- 雕像
GRID_TYPE_GAMBLE       =      30  -- 赌桌
GRID_TYPE_JACK_CORPSE  =      31  -- 杰克的尸体
GRID_TYPE_QUEEN_CORPSE =      32  -- 皇后的尸体
GRID_TYPE_GARDEN       =      33  -- 花园
GRID_TYPE_SHIELD       =      34  -- 奇怪的盾牌
GRID_TYPE_VILLAGER     =      35  -- 村民
GRID_TYPE_SKELETON     =      36  -- 骸骨堆
GRID_TYPE_HEAD_ALTAR   =      37  -- 头骨祭坛
GRID_TYPE_LAB          =      38  -- 死灵实验台
GRID_TYPE_SUMMON       =      39  -- 召唤类的
GRID_TYPE_WOMAN_WRECKAGE =    40  -- 女人的残骸
GRID_TYPE_SHRINE       =      41  -- 神龛
GRID_TYPE_ZORO_CORPSE  =      42  -- 佐罗的尸体
GRID_TYPE_TIED_PIG     =      43  -- 被捆绑的野猪
GRID_TYPE_PILGRIM      =      44  -- 朝圣者残骸
GRID_TYPE_ELEMENT_ALTAR =     45  -- 元素圣坛
GRID_TYPE_CAISSON       =     46  -- 弹药箱
GRID_TYPE_SKUMMER       =     47  -- 走私者残骸
GRID_TYPE_DRIFT_BOTTLE  =     48  -- 漂流瓶
GRID_TYPE_STONE         =     49  -- 魔法石
GRID_TYPE_ELEM_MINE     =     50  -- 元素矿脉
GRID_TYPE_WINNER_STONE  =     51  -- 胜利者石柱
GRID_TYPE_BOARD         =     52  -- 木牌
GRID_TYPE_SAILOR_WRECKAGE  =  53  -- 水手的残骸
GRID_TYPE_SHIPWRECK     =     54  -- 沉船
GRID_TYPE_GHOST_SHIP    =     55  -- 幽灵船
GRID_TYPE_TREASURE      =     56  -- 宝藏
GRID_TYPE_MINE_HILL     =     57  -- 矿山
GRID_TYPE_BELIEVER      =     58  -- 信徒
GRID_TYPE_FEATURE_ITEM  =     59  -- 功能引导道具
GRID_TYPE_ACTIVITY_BOSS_BOX = 60  -- 活动BOSS宝箱
GRID_TYPE_UNREAL_OBJECT     = 61  -- 神龙夹层普通物件
GRID_TYPE_UNREAL_SPECIAL    = 62  -- 神龙夹层特殊物件
GRID_TYPE_DEVELOPER_BOARD   = 63  -- 开发组木牌
GRID_TYPE_ODD_ALTAR         = 64  -- 奇怪的祭坛
GRID_TYPE_ODD_FLOOR         = 65  -- 奇怪的地板
GRID_TYPE_CRAVEN_SKELETON   = 66  -- 胆小的骷髅
GRID_TYPE_RUSTY_BOW         = 67  -- 生锈的重弩
GRID_TYPE_PIXY_WELL         = 68  -- 妖精之井
GRID_TYPE_DESK              = 69  -- 木桌
GRID_TYPE_STONE_BOX         = 70  -- 隐蔽的石匣
GRID_TYPE_PIXY_CAGE         = 71  -- 妖精的铁笼
GRID_TYPE_PIXY              = 72  -- 小妖精
GRID_TYPE_MISTIC_CAVE       = 73  -- 神秘山洞
GRID_TYPE_SPHINX            = 74  -- 狮身人面像
GRID_TYPE_DESERT_ALTAR      = 75  -- 沙漠祭坛
GRID_TYPE_CRYSTAL_BALL      = 76  -- 水晶球
GRID_TYPE_UNREAL_DUNGEON    = 77  -- 夹层迷宫
GRID_TYPE_OLD_TV            = 78  -- 老式电视机
GRID_TYPE_BOOKSHELF         = 79  -- 废弃的书架
GRID_TYPE_CABIN             = 80  -- 魅魔小屋
GRID_TYPE_DEMON_STATUE      = 81  -- 魔神雕像
GRID_TYPE_TOPLIST           = 82  -- 排行榜建筑
GRID_TYPE_SHOWCASE          = 83  -- 德古拉的展柜
GRID_TYPE_BLOOD_ALTAR       = 84  -- 鲜血祭坛
GRID_TYPE_COFFIN            = 85  -- 圣棺
GRID_TYPE_SLIME_EVENT       = 86  -- 冈布奥触发事件建筑
GRID_TYPE_ARENA_BOX         = 87  -- 角斗台储物箱
GRID_TYPE_ARENA_BOARD       = 88  -- 角斗台木牌
GRID_TYPE_ARENA_FLAG        = 89  -- 角斗台白旗
GRID_TYPE_DARK_DRAGON       = 90  -- 黑暗龙雕像
GRID_TYPE_CREATION_GATE     = 91  -- 创世之门
GRID_TYPE_SHADOW_SPACE      = 92  -- 阴影空间
GRID_TYPE_AIOULIYA_STATUE   = 93  -- 艾欧利亚雕像
GRID_TYPE_OLD_STRONGBOX     = 94  -- 古老的保险箱
GRID_TYPE_EAST_SHRINE       = 95  -- 东方的神龛
GRID_TYPE_MACHINE_ALTAR     = 96  -- 机械祭坛
GRID_TYPE_VILLAGER_FIGHTER  = 97  -- 斗士村民
GRID_TYPE_SKY_OBJECT        = 98  -- 天空副本通用建筑
GRID_TYPE_DIAMON_STATUE     = 99  -- 钻石雕像
GRID_TYPE_GOLD_CAN          = 100 -- 黄金罐子
GRID_TYPE_DRAGON_SHADOW     = 101 -- 神龙虚影
GRID_TYPE_SPECIAL_BUILDING  = 102 -- 清除后怪物才能领取奖励
GRID_TYPE_SKY_LAB           = 103 -- 天空副本的死灵实验台
GRID_TYPE_TREE_HOUSE        = 104 -- 树屋
GRID_TYPE_DISPLAY_OBJECT    = 105 -- 显示建筑，建筑点击无效
GRID_TYPE_PALADIN_EXPERIENCE= 106 -- 圣骑士的心得
GRID_TYPE_PALADIN_FOYER     = 107 -- 圣骑士休息室
GRID_TYPE_ELEMENT_LORD      = 108 -- 特殊元素圣坛
GRID_TYPE_ALTAR_RUINS       = 109 -- 圣坛废墟
GRID_TYPE_INSECT_QUEEN      = 110 -- 虫族女王
GRID_TYPE_KRYPTONITE        = 111 -- 氪石结界
GRID_TYPE_JUSTICE           = 112 -- 正义使者召唤
GRID_TYPE_UNREAL_STATUE     = 113 -- 你的雕像
GRID_TYPE_NORMAL_OBJECT     = 114 -- 通用建筑对象
GRID_TYPE_MASTER_OOGWAY     = 115 -- 乌龟大师
GRID_TYPE_TRANSFORM_DEVICE  = 116 -- 改造装置
GRID_TYPE_CAVE_HIDE_ITEM    = 117 -- 洞窟隐藏物件
GRID_TYPE_CRYSTAL_BARRIAL   = 118 -- 水晶结界
GRID_TYPE_RECRUIT_PET       = 119 -- 救冈布奥
GRID_TYPE_COMMANDER_SUMMON  = 120 -- 冈布奥建筑
GRID_TYPE_VITAMIN_CABIN     = 121 -- 维生舱
GRID_TYPE_SPECIAL_HIDE_ITEM = 122 -- 特殊洞窟隐藏建筑
GRID_TYPE_ANU_STATUE        = 123 -- 阿努比斯雕塑
GRID_TYPE_SKY_ELE_ALTAR     = 124 -- 天空副本的元素祭坛格子
GRID_TYPE_OLD_ANVIL         = 125 -- 老旧的铁砧
GRID_TYPE_OUT_BONFIRE       = 126 -- 熄灭的篝火
GRID_TYPE_SKY_ELEM_MINE     = 127 -- 天空副本矿脉
GRID_TYPE_SKY_STRONGBOX     = 128 -- 天空副本保险箱
GRID_TYPE_MONSTER_BUILDING  = 129 -- 回合刷怪物的建筑
GRID_TYPE_MACHINE_PLATFORM  = 130 -- 活动副本作战平台
GRID_TYPE_PICTURE           = 131 -- 纯图片格子
GRID_TYPE_DESK_CLOCK        = 132 -- 座钟
GRID_TYPE_BLOODY_TESTBED    = 133 -- 血腥试验台
GRID_TYPE_GUARD_STATUE      = 134 -- 守护雕像
GRID_TYPE_SEAL_ROOM         = 135 -- 封印的房间
GRID_TYPE_SKY_BLOODYCAVE    = 136 -- 血腥地窖
GRID_TYPE_CHESS_TABLE       = 137 -- 棋桌
GRID_TYPE_GUARDS            = 138 -- 侍卫
GRID_TYPE_CHANCELLOR        = 139 -- 大臣
GRID_TYPE_PRINCESS          = 140 -- 公主
GRID_TYPE_KING              = 141 -- 国王
GRID_TYPE_BRAVE_CAVE        = 142 -- 勇者洞窟
GRID_TYPE_CLOUDS_SHRINE     = 143 -- 云雨祠堂
GRID_TYPE_BRAVE_ITEM        = 144 -- 勇者斗恶龙中的通用物品
GRID_TYPE_BRAVE_SUBMITTER   = 145 -- 勇者斗恶龙提交道具NPC
GRID_TYPE_DRUNK             = 146 -- 醉汉
GRID_TYPE_DRUNK_BOX         = 147 -- 醉汉储物箱
GRID_TYPE_PIXY_SPRING       = 148 -- 妖精之泉
GRID_TYPE_EXCHANGER         = 149 -- 兑换建筑（可反复提交道具兑换奖励）
GRID_TYPE_POET              = 150 -- 吟游诗人
GRID_TYPE_GUARDS_LEADER     = 151 -- 侍卫队长
GRID_TYPE_PIXY_WELL_BRAVE   = 152 -- 妖精之井（勇者斗恶龙副本）
GRID_TYPE_BUSSNESSMAN       = 153 -- 商人
GRID_TYPE_LITTLE_BOY        = 154 -- 小男孩
GRID_TYPE_LAIJIA_GRAVE      = 155 -- 莱迦之墓
GRID_TYPE_ADVENTURER        = 156 -- 冒险者
GRID_TYPE_BRAVE_CERTIFICATE = 157 -- 勇者之证
GRID_TYPE_TRAVELLER_TENT    = 158 -- 旅者帐篷
GRID_TYPE_PRIEST            = 159 -- 神官
GRID_TYPE_HUGE_HOLE         = 160 -- 巨坑
GRID_TYPE_GRAVE             = 161 -- 坟墓
GRID_TYPE_HOLY_SHRINE       = 162 -- 神圣祠堂
GRID_TYPE_DRAGON_KING       = 163 -- 龙王
GRID_TYPE_DRAGON_KING_BOX   = 164 -- 龙王城宝箱怪
GRID_TYPE_TRANS_ELIMINATE   = 165 -- 转换消除
GRID_TYPE_DARK_STONE        = 166 -- 暗之石柱
GRID_TYPE_WAKUSEI           = 167 -- 变异体冈布奥
GRID_TYPE_COMMENT           = 168 -- Peter的木桌
GRID_TYPE_BOSS_STONE        = 169 -- boss层光/暗石柱
GRID_TYPE_REBELS            = 170 -- 受伤的反叛军
GRID_TYPE_BISHOP            = 171 -- 主教塞缪尔
GRID_TYPE_CG_UNREAL_OBJ     = 172 -- 创世之门夹层元素
GRID_TYPE_BISHOP_PRE        = 173 -- 召唤主教建筑
GRID_TYPE_BREAD_MILL        = 174 -- 面包磨坊
GRID_TYPE_STONE_STAGE       = 175 -- 石台
GRID_TYPE_AVALON_CANNON     = 176 -- 阿瓦隆巨炮
GRID_TYPE_EVIL_STATUE       = 177 -- 雕像
GRID_TYPE_MAGIC_MIRROR      = 178 -- 魔镜
GRID_TYPE_BS_POLICE         = 179 -- 蓝鲨警官
GRID_TYPE_OPERATE_TABLE     = 180 -- 操作台
GRID_TYPE_ENERGY_PLATFORM   = 181 -- 超导充能平台
GRID_TYPE_AVALON_LAB        = 182 -- 阿瓦隆的实验室
GRID_TYPE_TIMEBOMB          = 183 -- 定时炸弹
GRID_TYPE_GAS_DEVICE        = 184 -- 毒气装置
GRID_TYPE_STEEL_DOOR        = 185 -- 钢铁之门
GRID_TYPE_INTELLIGENCE_PC   = 186 -- 智能电脑
GRID_TYPE_AIRSHIP_CONSOLE   = 187 -- 飞艇控制台
GRID_TYPE_BROKEN_PC         = 188 -- 破旧的电脑
GRID_TYPE_INTERFERE_DEVICE  = 189 -- 电流干扰装置
GRID_TYPE_STEAM_MACHINE     = 190 -- 蒸汽机械
GRID_TYPE_ACTIVITY_BOX      = 191 -- 活动副本储物箱
GRID_TYPE_IRON_CHEST        = 192 -- 铁柜
GRID_TYPE_CHAIR             = 193 -- 电椅
GRID_TYPE_TV                = 194 -- 电视机
GRID_TYPE_NORMAL_GAMBLE     = 195 -- 赌桌
GRID_TYPE_GUARD_CHEST       = 196 -- 警卫室铁柜
GRID_TYPE_CHRISTMAS_HOUSE   = 197 -- 圣诞小屋
GRID_TYPE_LOCKED_SLIME      = 198 -- 被关押的冈布奥
GRID_TYPE_GODFATHER_STORAGE = 199 -- 宇宙教父的储藏器
GRID_TYPE_MASSAGE_ROOM      = 200 -- 按摩房
GRID_TYPE_BLACK_MARKET      = 201 -- 黑市摊贩
GRID_TYPE_FAIRY             = 202 -- 仙女
GRID_TYPE_STRANGE_PC        = 203 -- 奇怪的电脑
GRID_TYPE_BONUS_BUILDING    = 204 -- 奖励建筑
GRID_TYPE_SUMMON_BLACKSMITH = 205 -- 召唤兽工坊
GRID_TYPE_SPECIAL_ELEMENT_LORD  = 206   -- 特殊元素领主圣坛（提交的元素和奖励均由配置决定）
GRID_TYPE_CREATION_DOOR     = 207 -- 创世之门
GRID_TYPE_NORMAL_SUBMIT     = 208 -- 通用提交道具建筑
GRID_TYPE_CALL_SUMMON       = 209 -- 召唤召唤兽建筑
GRID_TYPE_NOT_FOUND_BUILDING = 210 -- 不存在指定建筑时可点击的建筑
GRID_TYPE_CONFUSED_SLIME    = 211 -- 混乱的冈布奥
GRID_TYPE_CREATION_GATE2    = 212  -- 创世之门（只提交钥匙后领取奖励）
GRID_TYPE_ART_STATUE        = 213 -- 艺术雕像
GRID_TYPE_BROKEN_ROBOT      = 214 -- 机器人的残骸
GRID_TYPE_HIDE_STRONGBOX    = 215 -- 隐藏的保险箱
GRID_TYPE_LIGHTHOUSE        = 216 -- 灯塔

-- 村民类型
VILLAGER_NORMAL           =  0x01    -- 普通村民（无条件领取）
VILLAGER_MONSTER_MISSION  =  0x02    -- 清怪任务村民
VILLAGER_FIGHTER          =  0x04    -- 斗士村民

-- 地牢操作类型
GRID_OPEN             =      0   -- 打开格子
GRID_HIT              =      1   -- 普通点击（攻击、拾取）
GRID_MAGIC            =      2   -- 魔法攻击

-- 格子状态
GRID_STATE_COVER      =      0   -- 隐藏
GRID_STATE_OPEN       =      1   -- 翻开
GRID_STATE_DISABLE    =      2   -- 无效

-- 格子操作状态
GRID_OPEN_OK        =   0   -- 可以操作
GRID_OPEN_DONE      =   1   -- 已经是翻开的状态
GRID_OPEN_LOCK      =   2   -- 被锁定了
GRID_OPEN_DISABLE   =   3   -- 不能打开（不连通、或者不能翻开的格子）

-- 地牢状态
DUNGEON_LOADING     =   0   -- 载入中
DUNGEON_GAMING      =   1   -- 游戏中
DUNGEON_PAUSING     =   2   -- 暂停中
DUNGEON_LEAVE       =   3   -- 离开了
DUNGEON_WAIT_NEXT   =   4   -- 等待数据

-- 地牢类型
DUNGEON_TYPE_NORMAL          = 0     -- 地面普通地牢
DUNGEON_TYPE_SKY_INSTANCE    = 1     -- 天空副本
DUNGEON_TYPE_SKY_ACTIVITY_INSTANCE    = 2     -- 天空活动副本
DUNGEON_TYPE_AWAKE           = 3     -- 觉醒试炼副本

-- 花园/魔藤的状态
GARDEN_EMPTY        =        0   -- 没有种植的花园
GARDEN_GROWING      =        1   -- 种植中（魔藤成长中）
GARDEN_BINE         =        2   -- 已经是魔藤了

-- 种植植物
PLANT_CLASS_BINE          =        1   -- 魔藤
PLANT_CLASS_SUN_FLOWER    =        2   -- 太阳花

-- 活动难度
ACTIVITY_GRADE_EASY       =   0     -- 简单
ACTIVITY_GRADE_NORMAL     =   1     -- 普通
ACTIVITY_GRADE_DIFFICULT  =   2     -- 困难

-- 无尽模式得分最高星级
MAX_DUNGEON_SCORE_STAR = 3;

-- 缓存消息循环发送时间
SYNC_MSG_REPOST_TIME     =  10   -- 10秒中发送一次
